/*
 * @Description: 
 * @Author: Zhang Zhangda
 * @Date: 2021-03-06 08:13:21
 * @LastEditTime: 2021-03-07 23:35:25
 * @LastEditors: Zhang Zhaoda
 */
import {FC,useState} from "react";
import {Modal} from "antd";
interface Iprops{
  isModalVisible:boolean;
  handleCancel:()=>void;
  children:any;
  title:string
}

let Modals:FC<Iprops>=({isModalVisible,handleCancel,children,title})=>{

 
  return (
    <Modal 
    title={title} 
    keyboard={true}
    visible={isModalVisible} 
    // okText='确定'
    // cancelText='取消'
    onCancel={handleCancel}
    footer={null}
    >
      {
        children
      }
  </Modal>
  )
}
export default Modals
